package com.example.cursor_service;

import com.example.cursor_orm.model.Role;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface RoleService {
    Role createRole(Role role);
    Role getRoleById(Integer id);
    Role updateRole(Integer id, Role role);
    boolean deleteRole(Integer id);
    List<Role> getRoleList(int page, int size);
    List<Integer> getUserIdsByRoleId(Integer roleId, int page, int size);
    boolean assignRoleToUser(Integer roleId, Integer userId);
    boolean removeRoleFromUser(Integer roleId, Integer userId);
} 